package com.hdu.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 省份名称枚举
 *
 * @author xiaobai
 * @since 2023/11/1
 */
@Getter
public enum RegionLabel {

    GUANGDONG(44, "广东"),
    JILIN(22, "吉林"),
    HEILONGJIANG(23, "黑龙江"),
    GUANGXI(45, "广西"),
    HAINAN(46, "海南"),
    CHONGQING(50, "重庆"),
    SICHUAN(51, "四川"),
    GUIZHOU(52, "贵州"),
    YUNNAN(53, "云南"),
    SHANGHAI(31, "上海"),
    JIANGSU(32, "江苏"),
    XIZANG(54, "西藏"),
    BEIJING(11, "北京"),
    ZHEJIANG(33, "浙江"),
    ANHUI(34, "安徽"),
    TIANJIN(12, "天津"),
    FUJIAN(35, "福建"),
    HEBEI(13, "河北"),
    JIANGXI(36, "江西"),
    SHANXI(14, "山西"),
    SHANDONG(37, "山东"),
    NEIMENGGU(15, "内蒙古"),
    SHAN_XI(61, "陕西"),
    GANSU(62, "甘肃"),
    HENAN(41, "河南"),
    QIANGHAI(63, "青海"),
    HUBEI(42, "湖北"),
    LINGXIA(64, "宁夏"),
    HUNAN(43, "湖南"),
    LIAONING(21, "辽宁"),
    XINJIANG(65, "新疆"),
    XIANGGANG(81, "香港"),
    AOMENG(82, "澳门");

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    RegionLabel(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }
}
